package com.nervenets.template.controller.setting.params;

import com.nervenets.general.web.params.EntityPagingParams;
import com.nervenets.template.hibernate.domain.common.GlobalRule;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.SuperBuilder;

import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Predicate;
import javax.persistence.criteria.Root;
import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Setter
@Getter
@AllArgsConstructor
@SuperBuilder
public class GlobalRulePagingParams extends EntityPagingParams<GlobalRule> {
    @Override
    public void generateSpecification(List<Predicate> predicates, Root<GlobalRule> root, CriteriaQuery<?> query, CriteriaBuilder builder) {

    }
}
